package com.victor.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.victor.dao.SetupDao;
import com.victor.entity.Myuser;
import com.victor.service.SetupService;

@Service
public class SetupServiceImpl implements SetupService {

	@Autowired
	private SetupDao setupDao;

//	修改设置信息
	@Override
	public boolean updateSetup(Myuser myuser) {
		return setupDao.updateSetup(myuser) > 0 ? true : false;
	}

//	 远程添加用户(添加userid和用户类型)
	@Override
	public boolean addMyuser(String userid, String user_type) {
		return setupDao.addMyuser(userid,user_type) > 0 ? true : false;
	}
}
